package cn.yuanqiao.archive.supervision.mapper;

import cn.yuanqiao.archive.supervision.domain.*;
import cn.yuanqiao.manage.domain.ManageTenant;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : 庸人一个
 * @create : 2024/3/14 14:51
 */
@Mapper
public interface AnnualInspectionNoticeMapper {

    /**
     * 添加 年检通知
     * @param annualCheckNotices 年检通知实体
     * @return
     */
    int save(YqAnnualCheckNotices annualCheckNotices);

    int saveFile(YqAttachments build);

    YqAttachments findByFileId(Long id);

    int deleteFile(Long id);

    int saveAnnuAndFileBatch(@Param("attachmentsNoticesList") List<YqAttachmentsNotices> attachmentsNoticesList);

    List<YqAttachmentsNotices> findByAnnualInspectionNoticeId(YqAttachmentsNotices attachmentsNotices);

    int deleteYqAttachmentsNotices(YqAttachmentsNotices attachmentsNotices);

    int updateById(Long id);

    int findFileCount(YqAttachmentsNotices yqAttachmentsNotices);

    int update(AnnualVo vo);

    List<AnnualVo> findByPage(AnnualVo vo);

    AnnualVo findById(Long id);

    List<YqAttachments> findFile(@Param("id") Long id, @Param("mjWhere") String mjWhere);

    List<ManageTenant> findUnit(String tenantCode);
}
